<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">



<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>TRABALHO</title>
	<link href="css/main.css" rel="stylesheet" type="text/css" />       
    <script type="text/javascript" src="scripts/upload.js"></script>    
	                 	
</head>




<body>

	<div id="content">			
		
			<?php include("top.php");?>
			
			<?php 
				if(! isset( $_SESSION['userid'] ) )
				{ 
				    redirect('index.php'); 
				} 						
			?>
				
		<div id="middle">
		
			<div id="middle_left"><?php include("left.php");?></div>
			
			<div id="middle_right">
            
				<?php include("mainsearch.php");?>
				
					<div id="middle_right_bot">  
           
                        <div id="middle_right_bot_top"></div>
              
              
                        <div id="middle_right_bot_mid">
						
                            <div class="title-mid"> <div class='label-title'>Upload Model</div> </div>
            	                                
							<div id="signupForm" class="signupForm"> 
                            
                              <table class="baloon" cellspacing="0" cellpadding="0">
                               <tbody>
                               <tr>
                               <td class="topl" style="padding-top:0px;"></td>
                               <td class="topr" style="padding-top:0px;"></td>
                               </tr>   
                               <tr>
                               
                               
                               <td class="boxmidlrg">
                                  
	                        <form enctype="multipart/form-data" name="uploadForm" action="lib/uploader.php" method="post">
																				
									Title: 
									<input type="text" name="Titulo" id="titulo" class=""  />
									<br/><br/><br/>
									Type: 
									<?php include("lib/getTypes.php");?>	
									<br/><br/>
                                    <?php include_once("lib/addtype.php");?>
                                    <a id="addtype" href="#addtype-popup" title="Create New Type">Create New Type</a>                                    																			
									<br/><br/><br/>
									
									Description: 
									<textarea name="Texto"  id="texto" rows="4" cols="50"></textarea>
									<br/><br/><br/>
									
									Tags: 
									<textarea name="Tags"  id="tags" rows="3" cols="50"></textarea>
									<br/><br/><br/>
														 
									Image:                       
									<input type="file" name="uploadimage" id="uploadimage" accept="image/jpeg" />
									<br/><br/>
																				 
									File: 
									<input type="file" name="uploadfile" id="uploadfile" />                                             
									<br/><br/>
									
									Upload: 
									<input  type="submit" name="submit" value="submit" onclick="checkForm();" />
									<br/><br/><br/>
									
								   
								
								</form>

       
       
       
       </td>
       <td class="boxmidr"></td>
       </tr>     
       
       <tr>
                   
       <td class="botl"></td>
       <td class="botr"></td>
       </tr>         
       
       </tbody>
       
       </table>
                                             
								
							</div>
						</div> <!-- middle_right_bot_mid -->
                        
                        <div id="middle_right_bot_paginate"><div id="paginar" class="jPaginate"></div></div>
                        
                        <div id="middle_right_bot_bot"></div>    
                    
					</div> <!-- middle_right_bot -->
			</div> <!-- middle_right -->
		
		</div>

		<?php include("bottom.php");?>
	</div> <!-- Content -->
		

</body>

</html>